#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include<sensor_thread.h>
#include<chart.h>
#include<QTimer>

QT_BEGIN_NAMESPACE
namespace Ui { class MainWindow; }
QT_END_NAMESPACE

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    MainWindow(QWidget *parent = nullptr);
    ~MainWindow();

    void openChartWindow();

private:
    Ui::MainWindow *ui;
    sensor_thread *st;

    Chart *Graph;
    QTimer *updateTimer;
    QWidget *chartWindow;
};
#endif // MAINWINDOW_H
